package io.gitee.zhangbinhub.admin.log.entity

import io.gitee.zhangbinhub.admin.log.base.BaseLogEntity
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.persistence.*

/**
 * @since JDK 11
 */
@Entity
@Table(
    name = "t_log_operate_history",
    uniqueConstraints = [UniqueConstraint(columnNames = ["logId", "requestTime"])],
    indexes = [Index(columnList = "requestTime")]
)
@Schema(description = "操作日志")
data class OperateLogHistory(
    @Id
    @Column(length = 36, nullable = false)
    @field:Schema(description = "ID")
    var id: String = ""
) : BaseLogEntity()